#include "RandomUtilsTest.h"
#include "RandomUtils.h"
#include "Timeout.h"

CPPUNIT_TEST_SUITE_REGISTRATION(RandomUtilsTest);

void RandomUtilsTest::setUp() {
	START_TIMEOUT(1000);
}

void RandomUtilsTest::tearDown() {
	STOP_TIMEOUT();
}

void RandomUtilsTest::testGenerateRandomObject() {
	const int randomObjects[] = {
		2,
		3
	};
	int randomObject = RandomUtils::generateRandomObject<int>(randomObjects, 2);
	CPPUNIT_ASSERT(randomObject == 2 || randomObject == 3);
}
